package com.tencent.qf.team.dal;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * dm_app_sales_organizational_performance
 *
 * @author
 */
@Data
public class DmAppSalesOrganizationalPerformance extends DmAppSalesOrganizationalPerformanceKey implements Serializable {
    /**
     * 成交单量
     */
    private Integer salesOrderNum = 0;

    /**
     * 成交金额
     */
    private BigDecimal salesAmt = BigDecimal.ZERO;

    /**
     * 客单价
     */
    private BigDecimal salesAtv = BigDecimal.ZERO;

    /**
     * 成交用户数
     */
    private Integer salesUserNum = 0;

    /**
     * 整体收益
     */
    private BigDecimal salesIncomeAmt = BigDecimal.ZERO;

    /**
     * 自购收益
     */
    private BigDecimal salesSelfIncomeAmt = BigDecimal.ZERO;

    /**
     * 推广收益
     */
    private BigDecimal salesPromoteIncomeAmt = BigDecimal.ZERO;

    /**
     * 平台结余
     */
    private BigDecimal salesPlatformBalanceAmt = BigDecimal.ZERO;

    /**
     * 更新时间
     */
    @JsonFormat(locale = "zh", timezone = "GMT", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    //总收益(总基础+总加码)
    private BigDecimal salesIncomeAmtAll = BigDecimal.ZERO;
    //总收益（加码）
    private BigDecimal overchargeSalesIncomeAmt = BigDecimal.ZERO;
    //总推广(加码)
    private BigDecimal promoteIncomeAmtAll = BigDecimal.ZERO;
    //总自购(加码)
    private BigDecimal selfIncomeAmtAll = BigDecimal.ZERO;
    //总基础收益
    private BigDecimal baseIncomeAmt = BigDecimal.ZERO;
    private static final long serialVersionUID = 1L;
}